From: Florian Müllner Date: Sat, 25 Apr 2026 01:22:03 +0000 (+0200) Subject: extensions-tool: Use g_strcmp0() for NULL-safety X-Git-Tag: archive/raspbian/50.5-1+rpi1^2~9^2^2~26 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a4f866aa79c1f491dda52284aadc5bfce9395314;p=gnome-shell.git extensions-tool: Use g_strcmp0() for NULL-safety While the argument cannot actually be NULL here (check in caller), this isn't easily detected by tooling. Spotted by gobject-linter: use_g_strcmp0 Part-of: (cherry picked from commit cc9735f968df2e0048869813d95e6a108cc6814b) --- diff --git a/subprojects/extensions-tool/src/command-upload.c b/subprojects/extensions-tool/src/command-upload.c index 2ead25f16..60446f342 100644 --- a/subprojects/extensions-tool/src/command-upload.c +++ b/subprojects/extensions-tool/src/command-upload.c @@ -174,7 +174,7 @@ read_password_file (const char *filename, g_autoptr (GDataInputStream) istream = NULL; char *line = NULL; - if (strcmp (filename, "-") == 0) + if (g_strcmp0 (filename, "-") == 0) { g_autoptr (GInputStream) stdin = NULL;